Finished exercise 2.