exercise 3.49 done