My Code Kata in ruby