the code to reproduce the class of PracticalMachineLearning