Update Task class