implement class server