added arg to function 6 in num lib
 updated function 10 in array lib with additional for loop + conditional