Ruby simple code examples