finishes exercise 5