new main class, adapted JulianDate and MetricDate to new classcall