added interval class