class PriceClientImpl implements PriceClient {

  /**
   * Makes a simple HTTP Get request to the Price microservice.
   *
   * @return The price of the product
   */
  @Override
  public String getPrice() {<FILL_FUNCTION_BODY>}

  private void logResponse(HttpResponse<String> httpResponse) {
    if (isSuccessResponse(httpResponse.statusCode())) {
      LOGGER.info("Price info received successfully");
    } else {
      LOGGER.warn("Price info request failed");
    }
  }

  private boolean isSuccessResponse(int responseCode) {
    return responseCode >= 200 && responseCode <= 299;
  }
}

    var httpClient = HttpClient.newHttpClient();
    var httpGet = HttpRequest.newBuilder()
        .GET()
        .uri(URI.create("http://localhost:50006/price"))
        .build();

    try {
      LOGGER.info("Sending request to fetch price info");
      var httpResponse = httpClient.send(httpGet, BodyHandlers.ofString());
      logResponse(httpResponse);
      return httpResponse.body();
    } catch (IOException e) {
      LOGGER.error("Failure occurred while getting price info", e);
    } catch (InterruptedException e) {
      LOGGER.error("Failure occurred while getting price info", e);
      Thread.currentThread().interrupt();
    }

    return null;
  
<no_super_class>