exercise 1.22 done