Good test, but add some where instead of [1], you use an expression, like a_double_array[a_index + 1]