add loop snippet
Merge pull request #23 from joseramonc/master

add loop snippet