Finished exercise 6.