rename train_and_test to trainAndTest