Added some general example code to show how to dynamically respond to kinds of data within a semi-tree structure.