add script sample of for loop