Add init to train.rb