Complete exercise 4.42