added fields to the task class.