<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fields(self, value):
 """sets the fields variable"""

        if type(value) is list:
            self._fields = value
        else:
            raise TypeError("Input must be a list")