A series of snippets of ruby code (version 1.9+)