fillArray and print it out