How to determine the maximum number from a list of numbers?