How to use "obliged" in a sentence

Sentences

If you had known the truth, you would have felt obliged to be good to me, a worthless criminal

'Watson,' he said, 'if you should ever think that I am becoming too confident in my powers, or that I am not working hard enough on a particular case, please whisper "Norbury" in my ear, and I will be infinitely obliged to you.'