exercise 3.10 done