Revised TrainFragment.java