Fix "Extending" documentation

There's an error in the extending documentation. "cls" was being passed twice.