Modify to use the System.Collections.Generic.List instead of Array.