Finished exercise 3.