You can check out my contribution here: https://www.napoleon-series.org/research/government/code/c_code2.html