finished matchup model code