add spec and code for due date method for Task class