Create IntervalFactory.java