implements Container class