adding custom date class