input: Write a function to create a class that stores movie information including the name, year of release, genre, and rating. The class should have an initializer method to set these attributes. Additionally, include an example of how to instantiate the class with a movie and print its details.
  
  class Movie:
      def __init__(self, name, release_year, genre, rating):
          self.name = name
          self.release_year = release_year
          self.genre = genre
          self.rating = rating
  
  movie = Movie("Interstellar", 2014, "Sci-Fi", 8.4)
  print(movie.name, movie.release_year, movie.genre, movie.rating)
output: class Movie:
      def __init__(self, name, release_year, genre, rating):
          self.name = name
          self.release_year = release_year
          self.genre = genre
          self.rating = rating