exercise 2.24 completed