

function Record(pieces) {
  this.name = pieces[0];
  this.mpg = float(pieces[1]);
  this.cylinders = int(pieces[2]);
  this.displacement = float(pieces[3]);
  this.horsepower = float(pieces[4]);
  this.weight = float(pieces[5]);
  this.acceleration = float(pieces[6]);
  this.year = int(pieces[7]);
  this.origin = float(pieces[8]);
}
