Basic ruby snippets