problem 3-5 solved