text: /* 
   * To change this license header, choose License Headers in Project Properties.
   * To change this template file, choose Tools | Templates
   * and open the template in the editor.
   */
  
  // Parser constructor.
  var Parser = function () {
  
  };
  
  // Parses the specified text.
  Parser.prototype.parse = function (text) {
  
      var results = {};
  
      // Break up the file into lines.
      var lines = text.split('\n');
  
      lines.forEach(function (line) {
          var parts = line.split(' ');
          var letter = parts[1];
          var count = parseInt(parts[2]);
  
          if (!results[letter]) {
              results[letter] = 0;
          }
  
          results[letter] += parseInt(count);
      });
  
      return results;
  };
  
  // Export the Parser constructor from this module.
  module.exports = Parser;