problem 9 done