I want to store the middle coordinates in a new array named xyz_middle, which should be of size 3 (representing the three coordinates, but I do not know how to index the mid