
class Stock:
    def __init__(this, name, shares, price):
        this.name   = name
        this.shares = shares
        this.price  = price

    def cost(this):
        return this.shares * this.price

    def sell(this, x):
        this.shares -= x
