How to open a lock