Finished Exercise 9b