small code snippets of my learning