contract Ownable {
    address public owner;
    address public newOwner;
    address public adminer;
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
    constructor() public {
        owner = msg.sender;
    }

  /**
   * @dev Throws if called by any account other than the owner.
   */
    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }
    
  /**
   * @dev Throws if called by any account other than the adminer.
   */
    modifier onlyAdminer {
        require(msg.sender == owner || msg.sender == adminer);
        _;
    }
    
  /**
   * @dev Allows the current owner to transfer control of the contract to a new owner.
   * @param _owner The address to transfer ownership to.
   */
    function transferOwnership(address _owner) public onlyOwner {
        newOwner = _owner;
    }
    
  /**
   * @dev New owner accept control of the contract.
   */
    function acceptOwnership() public {
        require(msg.sender == newOwner);
        emit OwnershipTransferred(owner, newOwner);
        owner = newOwner;
        newOwner = address(0x0);
    }
    
  /**
   * @dev change the control of the contract to a new adminer.
   * @param _adminer The address to transfer adminer to.
   */
    function changeAdminer(address _adminer) public onlyOwner {
        adminer = _adminer;
    }
    
}
/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of user permissions.
 */
function transferOwnership(address _owner) public onlyOwner {
    newOwner = _owner;
}

/**
 * @dev Allows the current owner to transfer control of the contract to a new owner.
 * @param _owner The address to transfer ownership to.
 */