Source code and examples for the training