Added the Server java code