<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set(self, type, offset, value):
 """ Set the specified bit field and returns its old value. """

        self._command_stack.extend(['SET', type, offset, value])
        return self