Another useful function is one that walks up a tree to the root and executes a callback on each node it passes over