<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def replace_emphasis(self, s, index = 0):
 """replace the index'th emphasized text with s"""

        e = self.emphasized[index]
        self.body[e[0]:e[1]] = [s]
        del self.emphasized[index]