added the SampleHistory class