https://numbas.mathcentre.ac.uk/question/6128/define-a-function-in-the-preamble-to-reuse-elsewhe/embed/