put web server in a class