public static void main(String[] args) throws ParseException {
        System.out.println("-----------RE-IMPLEMENTATION----------");
        CurrentDate CurrDate = new CurrentDate();

        Date date = CurrDate.input();
        //Date date = CurrDate.system();
        System.out.println("Date: "+date);

        Calendar cal = Calendar.getInstance();
        cal.setTime(date);
        int daysToWork = 0;
        int maxDate = cal.get(Calendar.DAY_OF_MONTH);
        System.out.println("MaxDate: "+maxDate);
        GeneralHolidays genHol = new GeneralHolidays();
        for (int i=1;i<= maxDate;i++){
            cal.set(Calendar.DAY_OF_MONTH,i);
            Date dataTest= cal.getTime();
            //System.out.println(dataTest);

			//should compare only date and month
            for (int j=0;j<genHol.holidaysArray().length;j++){
                //Convert to joda time
                DateTime datetime1 = new DateTime(dataTest);
                DateTime datetime2 = new DateTime(genHol.holidaysArray()[j]);
                //System.out.println((datetime1 + " " + datetime2));
                if(DateTimeComparator.getDateOnlyInstance().compare(datetime1,datetime2)==0){
                    daysToWork -= 1;
                    System.out.println("Holiday-" + datetime2);
                    break;
                }
            }

            DayOfWeek MyDayOfWeek = new DayOfWeek();
            int myDate = MyDayOfWeek.date(dataTest);
            //System.out.println(myDate);
            switch (myDate) {
                case 1:
                    //System.out.println("It's Sunday");
                    //daysToWork = daysToWork + 0;
                    break;
                case 7:
                    //System.out.println("It's Saturday");
                    //daysToWork = daysToWork + 0;
                    break;
                default:
                    //System.out.println("It's weekday");
                    daysToWork += 1;
                    break;
            }
        }
        /*
        System.out.println("HOLIDAYS TEST");
        for (int k=0;k<genHol.holidaysArray().length;k++){
            System.out.println(genHol.holidaysArray()[k]);
        }
        */

        int hoursToWork = daysToWork *8;
        System.out.println("Hours to work(w/o vac and holidays): " + hoursToWork);
        VacationsAndTax VacAndTax = new VacationsAndTax();
        int vacAndTax = VacAndTax.input();
        System.out.println("Vac and Tax(total): "+ vacAndTax);

        hoursToWork = hoursToWork - vacAndTax;
        System.out.println("Hours(total): " + hoursToWork);

    }