refactor Rectangle class to AxisAlignedRectangle