Implemented listener interface on the client.
Created a listenerinterface on the client