Finished exercise 4C