<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def chain(self, **kwargs):
 """ Add patterns chain, using configuration of this rebulk :param pattern: :type pattern: :param kwargs: :type kwargs: :return: :rtype: """

        chain = self.build_chain(**kwargs)
        self._patterns.append(chain)
        return chain