with task class