@Override
  public Object getValueAt(int rowIndex, int colIndex) {
    Object result;
    SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy");
    Car car = getRow(rowIndex);

    switch (colIndex) {
    case 0:
      result = car.getProducer();
      break;
    case 1:
      result = car.getModification();
      break;
    case 2:
      result = sdf.format(car.getManifactureDate());
      break;
    case 3:
      result = car.getColor();
      break;
    case 4:
      result = car.getPriceForDay();
      break;
    default:
      throw new RuntimeException("Invalid column index");
    }
    return result;

  }