Add lock example