updated problem 9 solution, starting problem 10