add public Interval class (had been forgotten)

I forgot it in #3.