How to use "companions" in a sentence

Sentences

The dog and the cat, who ate with her, were her only companions.

Having run to tell Marius that his friends were waiting for him, she was helping Enjolras and his companions to build the barricade