Improved two simple loop examples we have.
Moved simple loop example to regressions.
Updated the lock example.