added reverseRectangle class;