<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rm(self, index):
 """Handles the 'r' command. :index: Index of the item to remove. """

        if self.model.exists(index):
            self.model.remove(index)