contract owned {
    address public owner; //Crea una variable publica tipo 'address'

    constructor() public {
        owner = msg.sender; //la variable owner obtiene el valor 'address' de quien despliega el contrato
    }

//Esta funcion define al master.
    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }

//Esta funcion es usada para transferir la propiedad de tu contrato.
    function transferOwnership(address newOwner) onlyOwner public {
        owner = newOwner;
    }
}
function transferOwnership(address newOwner) onlyOwner public {
    owner = newOwner;
}

//Esta funcion es usada para transferir la propiedad de tu contrato.