abstracting red-blue parallelization to a common base class