finished exercise except the last one that blows up your database