Complete exercise 2.23