How to use "lesson" in a sentence

Sentences

A few evenings later, while he was giving Cosette a reading lesson in his room, Valjean heard the front door of the house open and close

I was a war hero, you know - I saved an officer's life at Waterloo! And you call me a criminal! Well, I'm going to teach you a lesson.'

Or you can think of it as an important lesson this here Fitzpatrick fella taught you."

Perhaps, across the great distances of space, the Martians have watched what happened to the ones that landed on Earth and learned their lesson - and have found a safer home on the planet Venus