add loop snippet

I like the loop snippet, and I noticed that there's no loop snippet.