<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def dataReceived(self, data):
 """ Called from Twisted whenever data is received. """

        self.bytes_in += (len(data))
        self.buffer_in = self.buffer_in + data

        while self.CheckDataReceived():
            pass