Exercise 2.10 done