Work on exercise 6