Worked on exercise 6.7