exercise 1.17 done