add tree interface with the three methods it needs for another implementation