Implement a class for receiving data