answer for problem 8