exercise 1.39 done