added Interval(int left ,int right) constructor