completed exercise 6.1