added array usage and a number function