Add ability to set the class of a field