Create file train.rb and train_spec.rb, implement the distance function.