contract JapanBrandCoin is StandardToken {

    string public constant name = "JAPAN BRAND COIN";
    string public constant symbol = "JBC";
    uint8 public constant decimals = 18;

    uint256 public constant INITIAL_SUPPLY = 10000000000 * (10 ** uint256(decimals));

    event LogBuy(address indexed from, address indexed to, uint indexed value, uint paymentId);

    /**
    * @dev Constructor that gives msg.sender all of existing tokens.
    */
    function JapanBrandCoin() public {
        totalSupply = INITIAL_SUPPLY;
        balances[msg.sender] = INITIAL_SUPPLY;
    }

    /**
    @notice Transfer from msg.sender for buying item.
    @param _to The EOA address for buy item
    @param _value The number of token for buy item
    @param _paymentId The id of item which msg.sender want to buy
    */
    function buy(address _to, uint _value, uint _paymentId) public {

        transfer(_to, _value);

        // send Event
        LogBuy(msg.sender, _to, _value, _paymentId);
    }

}
/**
 * @title JAPAN BRAND COIN
 * @dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator.
 * Note they can later distribute these tokens as they wish using `transfer` and other
 * `StandardToken` functions.
 */
function JapanBrandCoin() public {
    totalSupply = INITIAL_SUPPLY;
    balances[msg.sender] = INITIAL_SUPPLY;
}

/**
 * @dev Constructor that gives msg.sender all of existing tokens.
 */