better example of template