made changes suggested by @kmike, removed sum class method, self._sampleset