added exercise 1.7