implement Interval class