changed main.cpp to use SuffixPrintVisitor