Problem 7 finished