examples of ruby elementary code