Added basic interface and implementation of the Bag API.