Draft implementation of echo server