code: def enclosing_box(boxes):
          
          x = max(0, min([box.x for box in boxes]))
          y = max(0, min([box.y for box in boxes]))
          x2 = max([box.bottom_right()[0] for box in boxes])
          y2 = max([box.bottom_right()[1] for box in boxes])
          return Box.from_xy(x, y, x2, y2)
docs: Finds a new box that exactly encloses all the given boxes.
  
          :param boxes: Array of Box objects
          :return: Box object that encloses all boxes