array function exercise 1.