Racket code for exploring NMC.