Interval class implemented but not tested