problem 9 solution