Added fields created_time and completed_time for Task. The logic for seting task to completed was also added, but not for created.