Ok, so I still need a bit of help with this. I ran the script as ventilator wrote it above and the first thing I came up with is that 'index' was an undeclared identifier. I think I've pretty much gotten around that by either declaring it as a variable outside of the function, or using 'int index' inside the function. However, the numbers I'm getting back are not right. I get a few integers between 1 and 192, but I'm also getting 0's and -999, 999. Could I get a more detailed explanation of how the code works so that I can figure out what's wrong with it? Thanks!