made ResponseServer multi-threaded

made a server that extends thread class and put the code in the run
method