added Rectangle contains and intersects functions