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

    bool public mintingFinished = false;

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

    function mint(address _to, uint256 _tokenId) public onlyOwner canMint {
        _mint(_to, _tokenId);
    }

    function mintWithURI(address _to, uint256 _tokenId, string _uri) public onlyOwner canMint {
        _mint(_to, _tokenId);
        super._setTokenURI(_tokenId, _uri);
    }

    /**
     * @dev Function to stop minting new tokens.
     * @return True if the operation was successful.
     */
    function finishMinting() onlyOwner canMint public returns (bool) {
        mintingFinished = true;
        MintFinished();
        return true;
    }
}
function finishMinting() onlyOwner canMint public returns (bool) {
        mintingFinished = true;
        MintFinished();
        return true;
    }
/**
 * @dev Function to stop minting new tokens.
 * @return True if the operation was successful.
 */