added exception handling to question.rb