Implement Exercise 7