contract MintableToken is StandardToken {

	bool public mintingFinished = false;

	/**
     * Events
     */
	event Mint(address indexed to, uint amount);
  	event MintFinished();

	modifier canMint() {
		require(!mintingFinished);
		_;
	}

	/**
	 * @dev Function to mint tokens
	 * @param _to The address that will receive the minted tokens.
	 * @param _amount The amount of tokens to mint.
	 */
	function mint(address _to, uint _amount)
		public
		onlyOwner
		canMint
	{
		totalSupply = totalSupply.add(_amount);
		balanceOf[_to] = balanceOf[_to].add(_amount);
		Mint(_to, _amount);
		Transfer(0, _to, _amount);
	}

	/**
	 * @dev Function to stop minting new tokens.
	 */
	function finishMinting()
		public
		onlyOwner
		canMint
	{
		mintingFinished = true;
		MintFinished();
	}

}
/**
 * @title Mintable token
 */
function mint(address _to, uint _amount)
		public
		onlyOwner
		canMint
	{
		totalSupply = totalSupply.add(_amount);
		balanceOf[_to] = balanceOf[_to].add(_amount);
		Mint(_to, _amount);
		Transfer(0, _to, _amount);
	}
/**
 	 * @dev Function to mint tokens
 	 * @param _to The address that will receive the minted tokens.
 	 * @param _amount The amount of tokens to mint.
 	 */