Hi,
If you want to learn about Extracting Web Tests read
How to: Extract a Web Test. I would suggest extracting requests up until the Insert Option and use that as your Initialize Test, then everything after the Insert Option as your Terminate Test.
If you want to learn about Creating a Coded Web Test, read:
How to: Create a Coded Web Test. Then you would have to find the section of code that you want to repeat and create a loop.