completing exercise 2