added parser class to parser.rb