change print vector to template method
Generate Parenthesis