Finished exercise 4.