calculates averge rating