Added a loop to read from STDIN, also added a prompt so that you can type.  Type "end" to stop the program from running.  More interactive and like an echo response server.