add rating for code snippets