<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def characters(self):
 """ The number of characters in this text file. :rtype: int """

        chars = 0
        for fragment in self.fragments:
            chars += fragment.characters
        return chars