added templates and models