Implementing basic rating functional