I only added the split and the for loop here.