Define tasks by class