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.