A ruby code Kata