modified Server.java