problem 8 finished