Finished exercise 1 and 2 on lab 8