Finished allocate array and fillArray