Add Class() and SetClass() methods.