drawing contours.
skeleton code for smootour.