problem 3-8 solution