Update torch_answer.rb
code cleanup