Completed exercise 9