For loop for Tree initializer fixed