Interval class