template header and example (main)