finished up exercise 6