function sell(uint256 amount) {
        setPrices();
        if (balanceOf[msg.sender] < amount ) throw;        
        Transfer(msg.sender, this, amount);                 
        totalSupply -= amount;
        balanceOf[msg.sender] -= amount;                   
        msg.sender.send(amount * sellPrice);               
        setPrices();

    }