function to get averages of ratings added.