contract Migrations {
  address public owner;
  uint public lastCompletedMigration;

  constructor() public {
    owner = msg.sender;
  }

  modifier restricted() {
    if (msg.sender == owner) _;
  }

  /**
   * @notice set lastCompletedMigration variable
   * @param completed - id of the desired migration level
   */
  function setCompleted(uint completed) external restricted {
    lastCompletedMigration = completed;
  }
}
function setCompleted(uint completed) external restricted {
  lastCompletedMigration = completed;
}

/**
 * @notice set lastCompletedMigration variable
 * @param completed - id of the desired migration level
 */