Added d1, d2, d3 homework

still working on train2.rb but train.rb fulfills basic requirements