completed exercise 6