Add assignment operator for Samples.