Class for drawing rectangles