Finished exercise 5.25