Add bound to rectangles problem