DONE: istree.py