Add helper.rb to calc average result for each question