finishes exercise 8