Add new method to print tree