exercise 9.3.6, Page 317