better example of template & data