added ruby snippets