implemented first version of nodeTree