added match.rb class