contract admined {
    address public admin; //Admin address is public
    /**
    * @dev This constructor set the initial admin of the contract
    */
    function admined() internal {
        admin = msg.sender; //Set initial admin to contract creator
        Admined(admin);
    }

    modifier onlyAdmin() { //A modifier to define admin-only functions
        require(msg.sender == admin);
        _;
    }

    /**
    * @dev Transfer the adminship of the contract
    * @param _newAdmin The address of the new admin.
    */
    function transferAdminship(address _newAdmin) onlyAdmin public { //Admin can be transfered
        require(_newAdmin != address(0));
        admin = _newAdmin;
        TransferAdminship(admin);
    }

    //All admin actions have a log for public review
    event TransferAdminship(address newAdmin);
    event Admined(address administrador);
}
/**
 * This contract is administered
 */
function transferAdminship(address _newAdmin) onlyAdmin public { //Admin can be transfered
    require(_newAdmin != address(0));
    admin = _newAdmin;
    TransferAdminship(admin);
}

/**
 * @dev Transfer the adminship of the contract
 * @param _newAdmin The address of the new admin.
 */