How to cope with pain