This general class will apply the pattern to the containers