Update extending.rst