Forgot to define max()