Added rating functionality to the online store application

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