Finished code for creating one Bag per collection.