contract Owned {
    //Public variable
    address public owner;
    //Sets contract creator as the owner
    function Owned() {
        owner = msg.sender;
    }
    //Sets onlyOwner modifier for specified functions
    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }
    //Allows for transfer of contract ownership
    function transferOwnership(address newOwner) onlyOwner {
        owner = newOwner;
    }
}
function transferOwnership(address newOwner) onlyOwner {
    owner = newOwner;
}

//Allows for transfer of contract ownership