ranamed a bunch of classes and created a behind fot the textwriter