converted all Linked lists to ArrayLists with proper List declaration on LHS