function 10 in array lib created, passing to main code