completed exercise 3.5