@Override
    public void run() {

        int op;
        do {
            listPayMeansAUX = pmc.getListPaymentMeans();
            op = menu();
            switch (op) {
                case 0:
                    break;
                case 1:
                    System.out.println("You chose to add Cash:");
                    boolean flag = false;
                    PaymentMean aux;
                    
                    for (int i = 0; i < listPayMeansAUX.size(); i++) {
                        aux = listPayMeansAUX.get(i);
                        if (aux instanceof Cash) {
                            System.out.println("Cash already exists!");
                            flag = true;
                            break;
                        }
                    }
                    if (flag == false)
                    {
                    String currency = ct.getCurrencyList();        
                    pmc.registerCash(currency);
                    System.out.println("Payment mean added to the repository.");
                    ID++;
                    }
                    break;
                case 2:
                    System.out.println("You chose to add a Check:");

                    String instBanc = Console.readLine("Bank:");
                    int num = Console.readInteger("Check Number:");

                    pmc.registerCheck(num, instBanc);
                    System.out.println("Payment mean added to the repository.");
                    ID++;
                    break;
                case 3:
                    System.out.println("You chose to add a Debit Card:");

                    String instB = Console.readLine("Bank:");
                    String tipo = Console.readLine("Type:");
                    int num1 = Console.readInteger("Card Number:");

                    pmc.registerDCard(num1, instB, tipo);
                    System.out.println("Payment mean added to the repository.");
                    ID++;
                    break;
                case 4:
                    System.out.println("You chose to add a Credit Card:");

                    String instBa = Console.readLine("Bank:");
                    String tipo1 = Console.readLine("Type:");
                    int num2 = Console.readInteger("Card Number:");
                    Date d1 = Console.readDate("Expiration Date: ");

                    pmc.registerCCard(d1, num2, instBa, tipo1);
                    System.out.println("Payment mean added to the repository.");
                    ID++;
                    break;
                default:
                    break;
            }
        } while (op != 0);
    }