added class to train the model