contract Owned {
    address payable owner;
    address payable newOwner;

    event OwnershipTransferred(address indexed _from, address indexed _to);

    constructor() public {
        owner = 0x946e0439E8d660866DC9190B48c2f9E39dF90cb9;
    }

    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }
    /*
    function transferOwnership(address _newOwner) public onlyOwner {
        newOwner = _newOwner;
    }
    */
    function acceptOwnership() public {
        require(msg.sender == newOwner);
        emit OwnershipTransferred(owner, newOwner);
        owner = newOwner;
        newOwner = address(0);
    }
}
// ----------------------------------------------------------------------------
// Owned contract
// ----------------------------------------------------------------------------
function acceptOwnership() public {
    require(msg.sender == newOwner);
    emit OwnershipTransferred(owner, newOwner);
    owner = newOwner;
    newOwner = address(0);
}

/*
 function transferOwnership(address _newOwner) public onlyOwner {
 newOwner = _newOwner;
 }
 */