adds my version of exercise 2