refactored parent classes to be HttpServlet