implemented the assignment tree visitor