added a prompt to a Client
added loop to listen to client