Printing out the elements of an array