Complete exercise 12.5