Added some code on rating system.

Issue #23