added exercise 4.6