working with sample template