Refactored contour plot and polynoms.