Code snippets from reading