Small errror: the demo program says
some_var[1] = 500;
however, seeing the output, what was actually run must have been some_var[1] = 1;