added exercise 4