Some code and specs for TreeManager
Code and specs for TreeManager