add constructor from Rectangle.