https://numbas.mathcentre.ac.uk/question/32671/calculating-gradient.zip?scorm=