should be minimum instead of extremum
initial commit