Create Lock.cpp