Added solutions in Ruby