snippets of code about learning