added facade method to train model