finished exercise 3a in basics