Problem 5 finish