Modified WebServer class to object