Added example of genarray where the array size changes at every step.