Problem 9 finish