working on exercise 3