Completing exercise 9-1