Rectangles in a plane