Solving the problems of https://github.com/mark/asplus_ruby_quiz