<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def append(self, function, update=True):
 """ Append a new function to the end of this chain. """

        self._funcs.append(function)
        self._add_dep(function)
        if update:
            self._update()