Complete exercise 3.20