<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def addFilter(self, filterclass):
 """Add a filter class to the parser."""

        if filterclass not in self.filters:
            self.filters.append(filterclass)