answer for problem 4