Create maximum

maximum function.