exercise 3.77 done