added trainingService, fetch model from server implemented