added exercise 2.7