added exercise 5-6