Can you show me a code snippet or some pseudo-code for how to do it? Also please, include it in the readme.md