Finished exercise1-4