code that computed results for NSCM 2013