Created a script for automatically running lock examples.