<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_class2fields(self, html_class, fields=[], exclude=[], include_all_if_empty=True):
 """ add class to html widgets. """

        self.add_attr2fields('class', html_class, fields, exclude)