Intersecting rectangles, iteration 1