Worked on exercise 6.9