def min(a, b) { if( a > b) { return b; } else { return a; } } def max(a, b) { if(a > b) { return a; } else { return b; } }