Completing exercise 3-1