boolean isLeapYear(int year) {
        if (mod(year, 4) == 0) {
            int t = (int)mod(year, 400);
            if (t != 100 && t != 200 && t != 300) {
                return true;
            }
        }
        return false;
    }