Complete exercise 4.5