exercise 1.31 completed