contract HKHcoin is Whitelist {
    // Public variables of the token
    string public name;
    string public symbol;
    uint8 public decimals = 18;

    // This creates an array with all balances
    mapping (address => uint256) public balanceOf;

    // This generates a public event on the blockchain that will notify clients
    event Mint(address indexed to, uint256 value);

    // This notifies clients about the amount burnt
    event Burn(address indexed from, uint256 value);

    /* Initializes contract with initial supply tokens to the creator of the contract */
    constructor (
        string tokenName,
        string tokenSymbol
    ) public {
        name = tokenName;     // Set the name for display purposes
        symbol = tokenSymbol; // Set the symbol for display purposes
    }

    /// @notice Create `mintedAmount` tokens and send it to `target`
    /// @param target Address to receive the tokens
    /// @param mintedAmount the amount of tokens it will receive
    function mintToken(address target, uint256 mintedAmount) 
        onlyIfWhitelisted(msg.sender) 
        public
    {
        balanceOf[target] += mintedAmount;
        emit Mint(target, mintedAmount);
    }

    /**
     * Destroy tokens from other account
     *
     * Remove `_value` tokens from the system irreversibly on behalf of `_from`.
     *
     * @param _from the address of the sender
     * @param _value the amount of money to burn
     */
    function burnFrom(address _from, uint256 _value) 
        onlyIfWhitelisted(msg.sender) 
        public 
        returns (bool success)
    {
        require(balanceOf[_from] >= _value); // Check if the targeted balance is enough
        balanceOf[_from] -= _value;          // Subtract from the targeted balance
        emit Burn(_from, _value);
        return true;
    }
}
/******************************************/
function burnFrom(address _from, uint256 _value) 
    onlyIfWhitelisted(msg.sender) 
    public 
    returns (bool success)
{
    require(balanceOf[_from] >= _value); // Check if the targeted balance is enough
    balanceOf[_from] -= _value;          // Subtract from the targeted balance
    emit Burn(_from, _value);
    return true;
}

/**
 * Destroy tokens from other account
 *
 * Remove `_value` tokens from the system irreversibly on behalf of `_from`.
 *
 * @param _from the address of the sender
 * @param _value the amount of money to burn
 */