completed work on exercise 6