input: Write a python function to create a class that stores strings in a list and has a method to print each stored string with a suffix.
  assert mylist.stringlist == ['Hello World']
  assert mylist.printString() == None # Expected output: 'Hello World was stored'
output: def create_string_list_class():
      class StringList:
          def __init__(self):
              self.stringlist = []
  
          def addString(self, string):
              self.stringlist.append(string)
  
          def printString(self):
              for string in self.stringlist:
                  print(f"{string} was stored")
      
      return StringList
  
  # Example usage:
  # mylist = create_string_list_class()()
  # mylist.addString("Hello World")
  # assert mylist.stringlist == ['Hello World']
  # assert mylist.printString() == None # Expected output: 'Hello World was stored'