Refined Task class & addTask to include 2 dates

addTask can now support cases which have 2 dates
i.e. startDate & endDate