added exercise 2.2