Object oriented server code