drafe version of reactor(echo server is implemented)