refactor raceCar3.rb