exercise 9.4c added