exercise 3.42 done