Completing exercise 4-2