added first version of an interval
first integration of interval