Complete exercise 2.24