How to make the rate persistent between views

In M4 challenge,
How to make the rate persistent between views
Making a sharable data model?

Thanks