Completing exercise 3-3