Final code for webserver Assignment