Refactor using const
Add getTemplates method