created variable for array

created variable to store value of each array