"commented 2 lines and added rating function"