By using enumerate() we don't need to track i separately.