fix funcions answer, hai, square and average