added 4
printing tree method in 6