Text format class