Implement Exercise 9