problem 3 solutions