Complete exercise 9.1 and 9.2