create models and a template