Ruby code examples