addresses issue #9 (if no sample is given, defaults to first sample in dataset)