Refactoring of TrainingProgram