<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_item(self, item):
 """Updates the list of items in the current transaction"""

        _idx = len(self.items)
        self.items.update({"item_" + str(_idx + 1): item})