How to use "committing" in a sentence

Sentences

"We'd be committing suicide if we went to Kennebeck's place," Elliot said

'No, if you were committing a murder, you'd be very careful about things like that.'