text: import csv
  import unittest
  
  
  def ClassFactory(class_name, dictionary):
      return type(class_name, (object,), dictionary)
  
  
  class CsvReader:
      data = []
  
      def __init__(self, filepath):
          with open(filepath) as text_data:
              csv_data = csv.DictReader(text_data, delimiter=',')
              for row in csv_data:
                  self.data.append(row)
          pass
  
      def return_data_objects(self, class_name):
          objects = []
          for row in self.data:
              objects.append(ClassFactory(class_name, row))
          return objects
  
  
  if __name__ == '__main__':
      unittest.main()
  