Code of problem 1 working(only 1 server)