class LoadBalancer {
  private static final List<Server> SERVERS = new ArrayList<>();
  private static int lastServedId;

  static {
    var id = 0;
    for (var port : new int[]{8080, 8081, 8082, 8083, 8084}) {
      SERVERS.add(new Server("localhost", port, ++id));
    }
  }

  /**
   * Add new server.
   */
  public final void addServer(Server server) {
    synchronized (SERVERS) {
      SERVERS.add(server);
    }

  }

  public final int getNoOfServers() {
    return SERVERS.size();
  }

  public int getLastServedId() {
    return lastServedId;
  }

  /**
   * Handle request.
   */
  public synchronized void serverRequest(Request request) {<FILL_FUNCTION_BODY>}

}

    if (lastServedId >= SERVERS.size()) {
      lastServedId = 0;
    }
    var server = SERVERS.get(lastServedId++);
    server.serve(request);
  
<no_super_class>