contour program in tutorial P4_02