Fixed getTopRated code so it is now compilable.