Begin of the Bag class