Any implementations for proof of stake ?

I’m trying to understand proof of stake and I think the best way to understand it lookting to the codes I found many proof of work implementation but I couldnt any for pos. If there is any please send me the links.

The code is open source. You can find it here: https://github.com/peercoin/peercoin