working progress, need to check printtree.cc