exercise 3.59 done