iterating over an object/ finished exercise