The creation of the array has been rewritten, the size of the example has been reduced
A review of the code is required. Since I'm not sure what's written correctly at all.