basic use of template