exercise 4.31