<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(cls, name, value):
 """Add a name-value pair to the enumeration."""

        attr = cls(value)
        attr._name = name
        setattr(cls, name, attr)