ContourFinder class