Adding text class files.

Too damn lazy to merge this one with one that I've written sometime
earlier. I'll do it sometime soon