Create Interval.java