creating and traversing th nodes of a tree