added exercise 2.4