refactored to abstract helper from class
refactored textmodule and tested