Complete exercise 2.21