define task class