Added: methods to send and receive data from NetworkService class.