Base text class.