replaced max_number() with Python built-in max()