a contour can have classes