Create implementation of arrayBag