Completed Exercise 6