fillArray method is working for Array1