Tree generated correctly

Still seeing error in assigning children. Circular reference.