corrected Date class