adding ratings functionality