finally got my array function with a nested loop down. Now added.