added three new snippets for ruby