Completed Exercise 1.24