added setDueDate function code