Added the RectangleTool class