add trip_distance method to train.rb

This is genius!  Add it, quickly...before the competition does it too!!!!!!