exercise 3.9 done