more ruby snippets