+comment
adding print tree method