Problem 3 + math-min.js