answer for problem 7