Server.java updated to work