Last of ChatServer
ChatClient begin
ChatApp deviding to functions