Finished Exercise 6 part 3