Changed to array of arraylist