Ruby programs for beginners