random snippets of ruby