solved problem 1 in Ruby
solved problem 2 in Ruby
removed a useless =