create common container base class and refactor container classes to use it