finished exercise 3
fin ex3