I noticed that you created arrays for each of the variable categories. So index 4 from each array pertains to the same movie. This definitely works, it is not making the best use of objects. It also requires more code in the view. I will leave a comment there as well. You could just create an instance variable @all_titles_sorted and pass that to the view. Then in the view, you can use the each method to look at every movie object individually and then pluck out the title, year and imdbID within the loop.  I'll show the code for that in my comment in the view. You don't need to create the three arrays and you also don't to stuff them.