added contour sample by Abid Rahman