Modified the Dynamic Array sample - the code is now split in several files