array function

added array function
finished

adding flow charts