some another example of the same array exercise

with automatic resize added,
and also some list vs array suff