added exercise 2c separatly