working logic for repeat
Merge pull request #1 from gquintard/repeat

working logic for repeat