function result = addNoise(values, noiseFctn)
% Modifies the values by using the given function to add 
% "noise"
  result = values + noiseFctn(values);
end