This example seems to assume a maximum of two children. Does the code also work if you have many more child nodes per each parent as you would with a nested discussion forum?