finished star rating with average rating and exception handling for dividing by zero