Completing exercise 9-5