updated contour class