add classes to handle lines of text