More OOP style inheritance for tree nodes