Add items to branches of a tree

Depending on what the context is this could be easy or more advanced.