Each node has its own collection of nodes, just add it to that. Also realize that if you want to walk the entire tree at a later time you will need a recursive solution.