Completing exercise 1