https://numbas.mathcentre.ac.uk/question/46654/chi-square-goodness-of-fit-test.zip?