Update PrimitiveRectangle class