exercise 3.45 done