Solved exercism problems in Ruby