Finalize exercise 2.