Partially finished exercise 1-13.