input: def edit_to_dictionary(items: list) -> dict:
      """
      Rewrite the given Python program that uses a list to use a dictionary instead.
      The dictionary should map each number in the list to its corresponding word representation.
      For example, 1 maps to 'one', 2 maps to 'two', 3 maps to 'three', and 4 maps to 'four'.
      The function should return the modified dictionary.
      
      >>> edit_to_dictionary([1, 2, 3, 4])
      {1: 'one', 2: 'two', 3: 'three', 4: 'four'}
      >>> edit_to_dictionary([5, 6, 7, 8])
      {5: 'five', 6: 'six', 7: 'seven', 8: 'eight'}
      """
output:     number_to_word = {
          1: 'one', 2: 'two', 3: 'three', 4: 'four',
          5: 'five', 6: 'six', 7: 'seven', 8: 'eight',
          9: 'nine', 10: 'ten'
      }
      result = {}
      for item in items:
          if item in number_to_word:
              result[item] = number_to_word[item]
      return result