A separate class for sample collection