How to use "extending" in a sentence

Sentences

Elliot stood, extending the pistol in both hands, and snapped off three quick rounds

Danny became excited when he saw her drawing near, and in spite of his terrible condition, he shakily thrust himself into a sitting position, clutching at the bed rails with one frail, trembling hand, eagerly extending his other hand toward her.