added a date class