exercise 1.31 done