input: Write a function to create a Python class for storing movie information including the name, year of release, genre, and rating. The class should have an initialization method to set these attributes when an instance is created. Return the class definition along with an example instance creation and attribute access.
  
  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