Added visitor class that walks the nodes