finished exercise 1
4 and 5