Some of createTree() implemented