wrote server.java and handlers