Added text class attribute for model.