<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_template(self, tpl):
 """ Add and index a template into the `templates` container. :param tpl: The template to add :type tpl: alignak.objects.item.Item :return: None """

        tpl = self.index_template(tpl)
        self.templates[tpl.uuid] = tpl