added function to query rotten tomatoes