added Intervals class
Finished Intervals class I think