Epicodus exercise in Ruby