add template display method to template.class