a maxima sample

The sample is taken from my Apache 2.0 licensed project as mentioned in
a comment