finishes exercise 2.