Create lock.rb