Implemented a text class