Building the training process