added an array function

forgot to submit my commits, please exscuse my absent mindness.