https://numbas.mathcentre.ac.uk/question/44896/maria-s-copy-of-calculating-gradient.zip?