First implementation of a bag. More tests are needed.