Interval class for providing Interval functions, object