Allows you to create a visitor object that outputs the received information to the console