Completed Exercise 3.5.2