Complete exercise 1.18