input: Write a python function to create, read, update, and delete records in an SQLite database using the Model class.
  assert model.read() == []
  model.create('Model1')
  assert model.read() == [('Model1',)]
  model.update('UpdatedModel1')
  assert model.read() == [('UpdatedModel1',)]
  model.delete('UpdatedModel1')
  assert model.read() == []
output: import sqlite3
  
  class Model:
      def __init__(self, db_name=':memory:'):
          self.connection = sqlite3.connect(db_name)
          self.cursor = self.connection.cursor()
          self.cursor.execute("CREATE TABLE IF NOT EXISTS models (name TEXT)")
  
      def create(self, name):
          self.cursor.execute("INSERT INTO models (name) VALUES (?)", (name,))
          self.connection.commit()
  
      def read(self):
          self.cursor.execute("SELECT * FROM models")
          return self.cursor.fetchall()
  
      def update(self, new_name):
          self.cursor.execute("UPDATE models SET name = ? WHERE rowid = (SELECT MIN(rowid) FROM models)", (new_name,))
          self.connection.commit()
  
      def delete(self, name):
          self.cursor.execute("DELETE FROM models WHERE name = ?", (name,))
          self.connection.commit()
  
  # Example of using the Model class
  model = Model()