Problem 9 completed