Added rating functionality to the online store application

`end` at 14, 4 is not aligned with `def` at 3, 2