<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def addTab(self, elem, icon, name):
 """ Extends QTabWidget.addTab to keep an internal list of added tabs. :param elem: tab widget :param icon: tab icon :param name: tab name """

        self._widgets.append(elem)
        return super(TabWidget, self).addTab(elem, icon, name)