Completed Array Function. Working on Boolean Function.