Built the module that build the training data