problem 9 finished