composition of rectangles