added sample, model and gradient sync code in trainingservice, not complete..