Shopware 6 Subscriber

I want to display slogans to my front end in shopware. I am new to shopware and I dont know how to create a Subscriber class to do my work. I found a solution in Shopware 5 but ofcourse that does not work for 6. Can someone help me create a Subscriber class which allows me to make my Slogans configurable via plugin.
Shopware 5 Subscriber link:
https://developers.shopware.com/developers-guide/plugin-quick-start/#plugin-helper-class-sloganprinter

Here is my plugin directory for this:


Kindly refer to the plugin named MySlogans