working on exercise 47.