initial arrayfy.sh. unfinished.