Exercise 2.4 done