New date class and pseudocode to be implemented