Using the dynamicarray class
...