Bag accepts an array list of integers