array function

still doesn't computer, but added function