exercise 9 updated