Implemented creation of tree nodes