implement addrectangle
implement addcircle