added example for extracting template data