Finished exercise 1.27