title: Ruby Code issue
body: <p>Below is given code to implement movie playlist, but problem here is when m trying to run this program its giving output as below. Please help me in getting correct output</p>
  
  <pre><code>class Movie
  attr_accessor :movie_name, :rank
  
  def initialize(movie_name,rank)
   @movie_name = movie_name
   @rank = rank
  end
  
  def thumbs_up
      @rank = @rank + 1
      display
  end
  
  def thumds_down
      @rank = @rank - 1
      display
  end
  def display
     puts "Name of Movie #{@movie_name} and Rank #{@rank}"
     end
  end
  
  class Playlist
      def initialize(name)
          @name = name
          @movies = []
      end
      def add_movies movie
          @movies &lt;&lt; movie
      end
      def play
          puts "#{@name}'s Playlist:"
          puts @movies
  
           @movies.each do |movie|
               movie.movie_name
               movie.thumbs_up
               puts movie
           end
  
      end
  end
  
  
  movie1 = Movie.new("Devil",10)
  movie2 = Movie.new("Inception",3)
  
  playlist1 = Playlist.new("John")
  playlist1.add_movies(movie1)
  playlist1.add_movies(movie2)
  playlist1.play
  </code></pre>
  
  <p>OutPut:  </p>
  
  <pre><code>John's Playlist:  
  Name of Movie Devil and Rank 11  
  Name of Movie Inception and Rank 4
  </code></pre>
  
  <p>Expected OutPut:  </p>
  
  <pre><code>John's Playlist:  
  Name of Movie Devil and Rank 10  
  Name of Movie Inception and Rank 3   
  Name of Movie Devil and Rank 11  
  Name of Movie Inception and Rank 4
  </code></pre>