building up Server Class