Add sample looping example