exercise 4, d inclusive