update Tree homework