exercise 4c and 4d