Adding a sample template function