Added interval class