Impliemnted bag data structure