Complete exercise 1.31