Fix sample_name method to return sample name