Created interface for Interval.