updated carClass.rb

my Ruby has improved since I first did it