var totalYears = pilots.reduce(function (accumulator, pilot) { return accumulator + pilot.years; }, 0);