Seperated server class, added sample functions to client