implemented rating function

Able to now rate products