a) separate different classes into different files
b) add a message queue on the client side
c) only display reply when client hit enter