Adding a Contour class for point extraction