added problem 9 soln