Complete exercise 3.5