added ruby code examples