code examples for basic ruby concepts