copying array simple example