Completed Exercise 6.2