Made Changes to logic to return arrayList of items instead of string