Added createTemplate method