compare and contrast essay examples cats vs dogs problem solving using linear function