exercise 3.79 done