Updated CustomList using generics