Working method for Array