remove attr_accessor method and add attr_writer method to vehicle class