for with index example