https://numbas.mathcentre.ac.uk/question/32676/calculating-gradient-2.zip?