Problem 8 finished