printExtremes works with sampleList