compareMovies method added