added a date param to task class