Implementing threading in server for Client2