Added custom Contour object definition