Finished exercise 1 to 4