Update MainServlet.java

this is where is am almost done with hi part