Finished exercise 7-1