initial dog commit
finished exercise. added comments with other ways to complete answers