Update Tree class with interval logic