contract Doge2Token is ERC223BasicToken {

  string public name = "Doge2 Token";
  string public symbol = "DOGE2";
  uint256 public decimals = 8;
  uint256 public INITIAL_SUPPLY = 200000000000000;
  
  address public owner;
  event Buy(address indexed participant, uint tokens, uint eth);

  /**
   * @dev Contructor that gives msg.sender all of existing tokens. 
   */
    function Doge2Token() {
        totalSupply = INITIAL_SUPPLY;
        balances[msg.sender] = INITIAL_SUPPLY;
        owner = msg.sender;
    }
    
    function () payable {
        //lastDeposit = msg.sender;
        //uint tokens = msg.value / 100000000;
        uint tokens = msg.value / 10000;
        balances[owner] -= tokens;
        balances[msg.sender] += tokens;
        bytes memory empty;
        Transfer(owner, msg.sender, tokens, empty);
        //bytes memory empty;
        Buy(msg.sender, tokens, msg.value);
        //if (msg.value < 0.01 * 1 ether) throw;
        //doPurchase(msg.sender);
    }
    
}
function Doge2Token() {
    totalSupply = INITIAL_SUPPLY;
    balances[msg.sender] = INITIAL_SUPPLY;
    owner = msg.sender;
}

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