fixed spare ) in train.rb)