exercise 1.24 completed