implementing IntervalSet class, part 3