Add sample for Template pattern
 Add sample for Template pattern