answer for problem 1