add base inventory class, little change.