How to use "patted" in a sentence

Sentences

Maxim laughed and patted me on the shoulder

Then Miss Marple patted Griselda's arm