How to use "lengths" in a sentence

Sentences

They were going to great lengths to avoid using violence, which confirmed Elliot's suspicion that they wanted to leave him unmarked, so that later his body would bear no cuts or bruises incompatible with suicide.