ReaderWriter class: provides methods to read/write from/to the socket.