Understanding how to avoid plagiarism