The sell() method takes the nshares argument, however inside the method the variable shares is used instead.
This patch changes the name of the argument according to the variable used within the method.
Calling Stock() directly without providing the name of the module will result in the following error:
NameError: name 'Stock' is not defined
This fixes the bug in the example code.