finished exercise 9 js