How to avoid plagiarism when using templates for your writing