contract OurToken is StandardToken {

    string public name;
    string public symbol;
    uint public decimals;

    //  The contract can be initialized with a number of tokens
    //  All the tokens are deposited to the owner address
    //
    // @param _balance Initial supply of the contract
    // @param _name Token Name
    // @param _symbol Token symbol
    function OurToken(uint _initialSupply, string _name, string _symbol) public {
        _totalSupply = _initialSupply;
        name = _name;
        symbol = _symbol;
        decimals = 0;
        balances[owner] = _initialSupply;
    }

    function totalSupply() public constant returns (uint) {
        return _totalSupply;
    }

    // Issue a new amount of tokens
    // these tokens are deposited into the owner address
    //
    // @param _amount Number of tokens to be issued
    function issue(uint amount) public onlyOwner {
        require(_totalSupply + amount > _totalSupply);
        require(balances[owner] + amount > balances[owner]);

        balances[owner] += amount;
        _totalSupply += amount;
        Issue(amount);
    }

    // Redeem tokens.
    // These tokens are withdrawn from the owner address
    // if the balance must be enough to cover the redeem
    // or the call will fail.
    // @param _amount Number of tokens to be issued
    function redeem(uint amount) public onlyOwner {
        require(_totalSupply >= amount);
        require(balances[owner] >= amount);

        _totalSupply -= amount;
        balances[owner] -= amount;
        Redeem(amount);
    }


    // Called when new token are issued
    event Issue(uint amount);

    // Called when tokens are redeemed
    event Redeem(uint amount);
}
function OurToken(uint _initialSupply, string _name, string _symbol) public {
    _totalSupply = _initialSupply;
    name = _name;
    symbol = _symbol;
    decimals = 0;
    balances[owner] = _initialSupply;
}

//  The contract can be initialized with a number of tokens
//  All the tokens are deposited to the owner address
//
// @param _balance Initial supply of the contract
// @param _name Token Name
// @param _symbol Token symbol