refactor rails solution
refactor it
Update baseball.rb