input: 
  def find_mode(numbers: List[int]) -> int:
      """
      Given a list of integers, find the mode of the list which is the number that appears most frequently.
      If there are multiple modes, return the first one that appears.
      
      >>> find_mode([1, 2, 3, 2, 4, 2])
      2
      >>> find_mode([5, 5, 5, 2, 2, 3, 3, 3])
      5
      """
  
output:     frequency = {}
      for num in numbers:
          if num in frequency:
              frequency[num] += 1
          else:
              frequency[num] = 1
      
      max_count = 0
      mode = None
      for num, count in frequency.items():
          if count > max_count:
              max_count = count
              mode = num
      
      return mode