Added a simple Interval class.