https://numbas.mathcentre.ac.uk/question/12139/perform-chi-squared-test-on-2d-frequency-table.zip?