use external array
use the array length
off by one
Merge branch 'external-array'