outputing the array