Code used for trainings