renamed numSamples to samples. data inference prototype.