refactor Task and Process classes