exercise 1.18 done