sample code for drawing rectangles...