Complete exercise 3.4