Finished exercise 1.4