https://sbl.codingforstudent.com/5-data-driven-to-maximum-and-minimum-analysis/