Added templates and example