added client/server thread example