Added Interval class