class TaskHandler {

  /**
   * This interface handles one task at a time.
   */
  public void handleTask(Task task) throws InterruptedException {<FILL_FUNCTION_BODY>}

}

    var time = task.getTime();
    Thread.sleep(time);
    LOGGER.info("It takes " + time + " milliseconds to finish the task");
    task.setFinished();
  
<no_super_class>