Container class that follows NVI pattern and has iterator.