Completing exercise 9-3