contract MintableToken is StandardToken, Ownable {
  event MintFinished();

    bool public mintingFinished = false;


  modifier canMint() {
    require(!mintingFinished, "MintableToken: require minting active");
    _;
  }

  /**
   * @dev Function to mint tokens
   * @param _to The address that will recieve the minted tokens.
   * @param _value The amount of tokens to mint.
   * @return A boolean that indicates if the operation was successful.
   */
  function mint(address _to, uint256 _value) public onlyOwner canMint returns (bool) {
    totalSupply = totalSupply.add(_value);
    balances[_to] = balances[_to].add(_value);
    emit Transfer(address(0), _to, _value);
    return true;
  }

  /**
   * @dev Function to stop minting new tokens.
   * @return True if the operation was successful.
   */
  function finishMinting() public onlyOwner returns (bool) {
    mintingFinished = true;
    emit MintFinished();
    return true;
  }
}
function mint(address _to, uint256 _value) public onlyOwner canMint returns (bool) {
  totalSupply = totalSupply.add(_value);
  balances[_to] = balances[_to].add(_value);
  emit Transfer(address(0), _to, _value);
  return true;
}

/**
 * @dev Function to mint tokens
 * @param _to The address that will recieve the minted tokens.
 * @param _value The amount of tokens to mint.
 * @return A boolean that indicates if the operation was successful.
 */