Merge pull request #238 from ndawe/master

New example of how to create trees with branches of user-defined types