Use List instead of array