class Range

def overlaps?(other)

def overlaps?(other)
  max >= other.min && min <= other.min ||
  other.max >= min && other.min <= min
end