Control Loop Foundation: Batch and Continuous Processes