Added basic Rating calculation