updated the rating.rb to have the averages in the model
update the product model to eliminate the bug
updated the products to have an individual rating and total average score for the product