Finished exercise 1(I hope)