made TextBuffer into a static class since there is no reason to instantiate it