some more refactoring into classes for words and paragraphs