Create loop

This is for issue #1