contract owned {
    address public owner;                                    //the contract owner

    function owned() {
        owner = msg.sender;                                  //constructor initializes the creator as the owner on initialization
    }

    modifier onlyOwner {
        if (msg.sender != owner) throw;                      // functions with onlyOwner will throw an exception if not the contract owner
        _;
    }

    function transferOwnership(address newOwner) onlyOwner { // transfer contract owner to new owner
        owner = newOwner;
    }
}
/* Contract provides functions so only contract owner can execute a function */
function owned() {
    owner = msg.sender;                                  //constructor initializes the creator as the owner on initialization
}

//the contract owner