Intervals library