exercise 3.30 done