exercise 3.47 done