How to use "whoever" in a sentence

Sentences

'Then whoever took the boat out that night also made those holes and opened the sea-cocks.'

That'll improve my psychological condition for sure, and I'll be better able to deal with the creep, whoever he is

open yourself to whoever wants to speak through you."

"You don't want to rat on whoever it was