completing plotting assignment 1