exercise 8.2.2, Page287