added web.xml and modified class to object