process: extend the 'isTerminating' method by giving processes a general concept of state