Change example to time iteration over the created array