added exercise 8;