add arrays and iteration