Updating ast and adding print visitor class