finished trains.rb . Error found in assignment - verified 9 is the correct output for last line.