commented code to get the paragraphs