input: Write a python function to sort a list of Movie objects by their rating in descending order.
  assert sort_movies([Movie("MovieA", 8.2), Movie("MovieB", 9.1), Movie("MovieC", 7.5)]) == ["MovieB", "MovieA", "MovieC"]
  assert sort_movies([Movie("MovieX", 6.5), Movie("MovieY", 7.8), Movie("MovieZ", 6.5)]) == ["MovieY", "MovieX", "MovieZ"]
  assert sort_movies([Movie("Film1", 5.0), Movie("Film2", 5.0), Movie("Film3", 5.0)]) == ["Film1", "Film2", "Film3"]
output: def sort_movies(movies):
      sorted_movies = sorted(movies, key=lambda movie: movie.rating, reverse=True)
      return [movie.title for movie in sorted_movies]