completing exercise 10