exercise 7.1.2, Page233