Complete exercise 12.7