<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_str(self, s):
 """Add string s to the accumulated body."""

        self.write(s)
        self.room -= len(s)