Added visitor class for parse trees