exercise 2.2 done