Added new templates for imperative style and for mongo