Complete exercise 3.50