Implemented answer, square, and average