While I agree that ```.each``` loop is more readable, I can't really do it here. The reason I'm using ```while``` loop here is that I need to go through an array in reverse order, from bottom up to the top of the file.