Use an index instead of pointers into the vector. If the vector resizes, then