Modify Vehicle class to use attr_accessor.