problem 9 solution
problem 10 solution