Finished Exercise 6