added BoundingRectangle object and tests for it