Finishes exercise 7