contract PAMToken is ERC20 {

    string private _name;
    string private _symbol;
    uint8 private _decimals;
    uint256 private _totalAmount;

    constructor() public {
        _name = 'Plutus AI Mining';
        _symbol = 'PAM';
        _decimals = 18;
        _totalAmount = 1 * 1e9 * 1e18; //1 billion

        // set tokenOwnerAddress as owner of all tokens
        _mint(msg.sender, _totalAmount);
    }

    // optional functions from ERC20 stardard

    /**
     * @return the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @return the symbol of the token.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @return the number of decimals of the token.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }
}
function name() public view returns (string memory) {
    return _name;
}

/**
 * @return the name of the token.
 */