Create lock_system

This is the source code for lock system.