Added an interval class.