Replaces rectangle_in_rectangle with Harri's correct version.