contract owned {
    address public owner;

    function owned() {
        owner = msg.sender;
    }

    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }

    // 實現所有權轉移
    function transferOwnership(address newOwner) onlyOwner {
        owner = newOwner;
    }
}
function transferOwnership(address newOwner) onlyOwner {
    owner = newOwner;
}

// 實現所有權轉移